package symbols;

public class Filo {
    private static int[] nums = new int[32];
    private static int sp = 0;
    private static String[] procs = new String[32];
    private static int psp = 0;
    public static boolean iempty() {
	if (sp > 0)
	    return false;
	return true;
    }
    public static boolean pempty() {
	if (psp > 0)
	    return false;
	return true;
    }
    public static void pushp(String s) {
	procs[psp] = s;
	psp++;
    }
    public static String popp() {
	if (psp > 0)
	    return procs[--psp];
	return "";
    }
    public static void push(int i) {
	nums[sp] = i;
	sp++;
    }
    public static int pop() {
	if (sp > 0)
	    return nums[--sp];
	return -1;
    }
}
